package com.yvon.maple.service.system.service.impl;

import com.yvon.boot.mybatis.BaseServiceImpl;
import com.yvon.maple.service.system.dto.UserDeptDTO;
import com.yvon.maple.service.system.entity.UserDept;
import com.yvon.maple.service.system.mapper.UserDeptMapper;
import com.yvon.maple.service.system.service.UserDeptService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserDeptServiceImpl extends BaseServiceImpl<UserDept, UserDeptMapper> implements UserDeptService {

    @Override
    public List<UserDeptDTO> getDeptByUserId(Long userId){
        return baseMapper.getDeptByUserId(userId);
    }
}
